package cn.edu.xmu.oomall.share.microservice;

import cn.edu.xmu.oomall.share.microservice.vo.OnSaleVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "goods-service")
public interface OnSaleService {
    @GetMapping( "internal/onsales/{id}")
    InternalReturnObject<OnSaleVo> getOnsaleById(@PathVariable("id")Long id);
}
